import service from '../../utils/request'
/* 获取职位详情 */
export const getJob = () => {
  return service({
    url: 'job',
    method: 'GET'
  })
}
/* 获取热门城市详情 */
export const getHotcity = () => {
  return service({
    url: 'http://192.168.31.25:3040/hotcity',
    method: 'GET'
  })
}
/* 更新用户数据 */
export const updateUser = (data) => {
  return service({
    url: 'resume',
    method: 'POST',
    data
  })
}
/* 获取用户数据 */
export const getUser = (id) => {
  return service({
    url: `resume/${id}`,
    method: 'GET'
  })
}
/* 更新用户数据 */
export const updateUserData = (data) => {
  return service({
    url: `resume/${data.id}`,
    method: 'PUT',
    data
  })
}
/* 添加模块 */
export const addModule = () => {
  return service({
    url: 'module',
    method: 'GET'
  })
}
